package com.example.library_demo.entity;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;

import java.math.BigDecimal;
import java.time.LocalDateTime;
import java.io.Serializable;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 借阅
 * </p>
 *
 * @author Eric
 * @since 2024-11-27
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("l_circulation")
public class Circulation implements Serializable {

    private static final long serialVersionUID=1L;

    @TableId(value = "circulation_id", type = IdType.AUTO)
    private Long circulationId;

    private Long userId;

    private Long cardId;

    private LocalDateTime lendDate;

    private LocalDateTime returnDate;

    private LocalDateTime actualReturnDate;

    private Long bookId;

    private Integer lendCount;

    /**
     * 押金
     */
    private BigDecimal deposit;

    /**
     * 0: lend
     * 1: return
     */
    private Integer status;

    /**
     * 归还押金
     */
    private BigDecimal returnDeposit;


}
